/** *******************************************************************
 * FlexDatabaseManager
 * @author  Jonnie Spratley
 * @contact jonniespratley@gmail.com
 * @internal
 ******************************************************************* */
package com.jonniespratley.flexdatabasemanager.vo
{	

	[Bindable]
	public class IndexVO
	{
		
		/* [Table] => contacts
            [Non_unique] => 0
            [Key_name] => PRIMARY
            [Seq_in_index] => 1
            [Column_name] => id
            [Collation] => A
            [Cardinality] => 267
            [Sub_part] => 
            [Packed] => 
            [Null] => 
            [Index_type] => BTREE
            [Comment] =>  */
            
            public var aTable:String;
            public var aNonUnique:String;
            public var aKeyName:String;
            public var aSeqInIndex:String;
            public var aColumnName:String;
            public var aCollation:String;
            public var aCardinality:String;
            public var aSubPart:String;
            public var aPacked:String;
            public var aNull:String;
            public var aIndexType:String;
            public var aComment:String;
		
		public function  IndexVO( obj:Object = null )
		{			
			if ( obj != null )
			{
				this.aTable = obj[ 'Table' ];
				this.aNonUnique = obj[ 'Non_unique' ];
				this.aKeyName = obj[ 'Key_name' ];
				this.aSeqInIndex = obj[ 'Seq_in_index' ];
				this.aColumnName = obj[ 'Column_name' ];
				this.aCollation = obj[ 'Collation' ];
				this.aCardinality = obj[ 'Cardinality' ];
				this.aSubPart = obj[ 'Sub_part' ];
				this.aPacked = obj[ 'Packed' ];
				this.aNull = obj[ 'Null' ];
				this.aIndexType = obj[ 'Index_type' ];
				this.aComment = obj[ 'Comment' ];
			}
		}
	}
}